import request from '@/utils/request'
// 登录
export function login(data) {
  return request({
    url: '/bookkeeping/base/login',
    method: 'post',
    data
  })
}
// 登录
export function loginMd5(data) {
  return request({
    url: '/bookkeeping/base/loginMd5',
    method: 'post',
    data
  })
}
// 修改密码
export function editPassword(data) {
  return request({
    url: '/bookkeeping/base/updatePwd',
    method: 'post',
    data
  })
}
// 获取图形验证码
export function sendVerificationImg(data) {
  return request({
    url: '/bookkeeping/base/sendVerificationImg',
    method: 'post',
    data
  })
}
// 获取短信验证码
export function sendCode(data) {
  return request({
    url: '/bookkeeping/base/sendCode',
    method: 'post',
    data
  })
}
// 注册
export function register(data) {
  return request({
    url: '/bookkeeping/base/register',
    method: 'post',
    data
  })
}
// 找回密码
export function findPwd(data) {
  return request({
    url: '/bookkeeping/base/findPwd',
    method: 'post',
    data
  })
}
// 账号注销
export function cancel(data) {
  return request({
    url: '/bookkeeping/base/cancel',
    method: 'post',
    data
  })
}
